package com.qiyang.api.uaa;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * Created on 2018/5/8.
 *
 * @author sehuaqi.
 * 描述：
 */
@Component
public class AuthrizationFeignApiHystrix implements AuthrizationFeignApi {

    Logger logger = LoggerFactory.getLogger(AuthrizationFeignApiHystrix.class);

    @Override
    public String role(Long userId) {

        logger.info("服务降级：获取用户角色错误");

        return "ERROR_ROLE_FAILED";
    }

    @Override
    public String initSysuser(int num) {

        return null;
    }

}
